﻿/*CREATE TRIGGER [dbo].[RiegoFuentes_DeletionTrigger] 
    ON [RiegoFuentes] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[RiegoFuentes_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[FuenteGuid] = [RiegoFuentes_Tombstone].[FuenteGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[RiegoFuentes_Tombstone] 
    ([FuenteGuid], DeletionDate)
    SELECT [FuenteGuid], GETUTCDATE()
    FROM deleted 
END*/